<%--
  Created by IntelliJ IDEA.
  User: 13585
  Date: 2020/12/23
  Time: 19:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>会议室预约系统后台管理</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.getContextPath()}/back/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">会议室预约系统后台管理</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">我的信息</a>
                <dl class="layui-nav-child">
                    <dd><a href="upAdmin.jsp" target="main">修改密码</a></dd>
                    <dd><a href="cancelAdmin" target="main">退出系统</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">通告栏:</a>
                    <dl class="layui-nav-child">
                        <dd><a href="announceList">查看</a></dd>
                        <dd><a href="addannounce.jsp">添加</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">会议室信息</a>
                    <dl class="layui-nav-child">
                        <dd><a href="meetingList" target="main">查看</a></dd>
                        <dd><a href="addmeeting.jsp" target="main">添加</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="regformList" target="main">查看登记表</a></li>
                <li class="layui-nav-item"><a href="applyList" target="main">查看预约消息</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe src="applyList" name="main" id="main" width="100%" style="height: 99.9%" frameborder="0"></iframe>
    </div>
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        欢迎使用会议室预约后台管理系统
    </div>
</div>
<script src="${pageContext.request.getContextPath()}/back/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element','jquery'], function(){
        var $=layui.jquery;
        var element = layui.element;
        $(document).ready(function(){
            $("dd>a").click(function (e) {
                e.preventDefault();
                $("#main").attr("src",$(this).attr("href"));
            });
            $("dd>a").click(function (e) {
                e.preventDefault();
                $("#main").attr("src",$(this).attr("href"));
            });
        });
    });
</script>
</body>
</html>